<?php
    include_once('lang.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
    <head>
        <title><?php _l('site-title'); ?></title>
        <meta name="description" content="<?php _l('site-descript'); ?>" />
	<meta name="keywords" content="<?php _l('site-keyword'); ?>" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        
	<link rel="shortcut icon" href="images/favicon.ico" />
        
        <script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
	<!--<script src="js/jquery-ui-1.8.11.custom.min.js" type="text/javascript"></script>-->
	<!--<link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.11.custom.css" type="text/css" media="all" />-->
        
        <link rel="stylesheet" type="text/css" href="css/reset.css" />
        <link rel="stylesheet" type="text/css" href="css/style.css" />
	
        <!--[if IE 6]>
	<link href="css/ie6.css" rel="stylesheet" />
	<script language="javascript" type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script>
	<script>
	    DD_belatedPNG.fix('img');
	    DD_belatedPNG.fix('.png_bg');
	</script>
        <![endif]-->
        <!--[if IE 7]>
	<link href="css/ie7.css" rel="stylesheet" />
        <![endif]-->
        <!--[if IE 8]>
	<link href="css/ie8.css" rel="stylesheet" />
        <![endif]-->
	
	<script>
	    $(document).ready(function(){
		//alert($('#wrapper').height());
		$("#main_bg").height($('#wrapper').height()+20);
		$("#main_bg").css('overflowY','hidden');
		$("#main_bg").css('display','block');
	    });
	</script>
    </head>
    <body>
        <div id="top_line">&nbsp;</div>
        <div id="wrapper">
            <div id="header">
                <div id="logo">
                    <a href="home.php" title="<?php _l('site-title'); ?>"><img src="images/logo.jpg"  alt="<?php _l('site-title'); ?>" /></a>
                </div>
                <div id="menu">
                    <div id="flag">
			<?php
			    if(isset($lang_redirect_page_)){
			?>
                        <a href="<?php echo $lang_redirect_page_; ?>&lang=th" title="ภาษาไทย"><img src="images/flag_th.jpg" alt="<?php _l('lang-th'); ?>" class="switch_lang"/></a>
                        <a href="<?php echo $lang_redirect_page_; ?>&lang=en" title="English"><img src="images/flag_en.jpg" alt="<?php _l('lang-en'); ?>" class="switch_lang"/></a>
			<?php
			    }else{
			?>
			<a href="<?php echo $lang_redirect_page; ?>?lang=th" title="ภาษาไทย"><img src="images/flag_th.jpg" alt="<?php _l('lang-th'); ?>" class="switch_lang"/></a>
                        <a href="<?php echo $lang_redirect_page; ?>?lang=en" title="English"><img src="images/flag_en.jpg" alt="<?php _l('lang-en'); ?>" class="switch_lang"/></a>
			<?php
			    }
			?>
                    </div>
                    <div id="menu_">
                        <ul>
                            <li<?php echo $home_nav; ?>><a href="home.php" title="<?php _l('menu-home'); ?>"><?php _l('menu-home'); ?></a></li>
                            <li<?php echo $profile_nav; ?>><a href="profile.php" title="<?php _l('menu-profile'); ?>"><?php _l('menu-profile'); ?></a></li>
                            <li<?php echo $project_nav; ?>><a href="projects.php" title="<?php _l('menu-project'); ?>"><?php _l('menu-project'); ?></a></li>
                            <li<?php echo $product_nav; ?>><a href="product.php" title="<?php _l('menu-product'); ?>"><?php _l('menu-product'); ?></a></li>
                            <li<?php echo $contact_nav; ?>><a href="contact-us.php" title="<?php _l('menu-contact'); ?>"><?php _l('menu-contact'); ?></a></li>
                        </ul>
                    </div>
                    <?php if($project_nav!=''): ?>
                    <div id="sub_menu_project">
                        <ul>
                            <li<?php echo $project_0_nav; ?>><a href="projects.php" title="<?php _l('project-all-title'); ?>"><?php _l('project-all-title'); ?></a></li>
                            <li<?php echo $project_1_nav; ?>><a href="project.php?project_cat=1" title="<?php _l('project-house-title'); ?>"><?php _l('project-house-title'); ?></a></li>
                            <li<?php echo $project_2_nav; ?>><a href="project.php?project_cat=2" title="<?php _l('project-condo-title'); ?>"><?php _l('project-condo-title'); ?></a></li>
                            <li<?php echo $project_3_nav; ?>><a href="project.php?project_cat=3" title="<?php _l('project-office-title'); ?>"><?php _l('project-office-title'); ?></a></li>
                            <li<?php echo $project_4_nav; ?>><a href="project.php?project_cat=4" title="<?php _l('project-hotel-title'); ?>"><?php _l('project-hotel-title'); ?></a></li>
                            <li<?php echo $project_5_nav; ?>><a href="project.php?project_cat=5" title="<?php _l('project-other-title'); ?>"><?php _l('project-other-title'); ?></a></li>
                        </ul>
                    </div>
                    <?php elseif($product_nav!=''): ?>
                    <div id="sub_menu_product">
                        <ul>
                            <li<?php echo $product_1_nav; ?>><a href="product.php?product_cat=1" title="<?php _l('product-living-title'); ?>"><?php _l('product-living-title'); ?></a></li>
                            <li<?php echo $product_2_nav; ?>><a href="product.php?product_cat=2" title="<?php _l('product-bed-title'); ?>"><?php _l('product-bed-title'); ?></a></li>
                            <li<?php echo $product_3_nav; ?>><a href="product.php?product_cat=3" title="<?php _l('product-dinning-title'); ?>"><?php _l('product-dinning-title'); ?></a></li>
                            <li<?php echo $product_4_nav; ?>><a href="product.php?product_cat=4" title="<?php _l('product-working-title'); ?>"><?php _l('product-working-title'); ?></a></li>
                        </ul>
                    </div>
                    <?php endif; ?>
                </div>
                <div class="clear">&nbsp;</div>
            </div>
            <div id="content">